<%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" 
    Inherits="DocFusion, DocFusion, Version=1.0.0.0, Culture=neutral, PublickeyToken=db4190ee825a832d"%>

<%@ Register Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" 
    Namespace="Microsoft.SharePoint.WebControls" TagPrefix="cc1"%>
       

<asp:Content ID="PageTitle" runat="server" ContentPlaceHolderID="PlaceHolderPageTitle">
    Build Composite Document
</asp:Content> 

<asp:Content ID="PageTitleBreadcrumb" runat="server" ContentPlaceHolderID="PlaceHolderTitleBreadcrumb">
  <asp:HyperLink ID="lnkWeb" runat="server" Text="Web" /> >
  <asp:HyperLink ID="lnkLib" runat="server" Text="Library" /> 
</asp:Content>

<asp:Content ID="PageImage" runat="server" ContentPlaceHolderID="PlaceHolderPageImage">
   <span ID="Span2" style="white-space: nowrap; padding-top: 10px;">
     <asp:HyperLink ID="lnkTechardinal" runat="server" NavigateUrl="http://www.techardinal.com" Target="_blank">
        <asp:Image ID="imgPageImage" runat="server" ImageUrl="/_layouts/images/techardinal/CardinalRed.png"/>    
     </asp:HyperLink>                
    </span>
</asp:Content>    

<asp:Content ID="PageTitleInTitleArea" runat="server" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea">
  Build Composite Document : <asp:Label ID="labPageTitleInTitleArea" runat="server" />
</asp:Content>    


<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    
    <asp:Table ID="ControlTable" runat="server">

        <asp:TableHeaderRow>
            <asp:TableHeaderCell HorizontalAlign="Right" ColumnSpan="5">
              <asp:Button ID="btnBuildTop" runat="server" Text="Build" Width="80px" />&nbsp
              <asp:Button ID="btnCancelTop" runat="server" Text="Cancel" Width="80px" />
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        
        <asp:TableHeaderRow>
            <asp:TableHeaderCell HorizontalAlign="Left" ColumnSpan="5">
                <asp:Label ID="labWarning" runat="server" CssClass="ms-formvalidation"></asp:Label>
            </asp:TableHeaderCell>
        </asp:TableHeaderRow>
        
        
        <asp:TableHeaderRow>
            <asp:TableHeaderCell HorizontalAlign="Left" >
                <asp:Label ID="labHeader" runat="server" Text = "Select Component Documents" CssClass="ms-sitetitle"></asp:Label>
            </asp:TableHeaderCell>
            <asp:TableHeaderCell></asp:TableHeaderCell>
            <asp:TableHeaderCell HorizontalAlign="Left" >
                <asp:Label ID="labDocStructure" runat="server" Text = "Document Insertion Points" CssClass="ms-sitetitle"></asp:Label>            
            </asp:TableHeaderCell>
            <asp:TableHeaderCell></asp:TableHeaderCell>
            <asp:TableHeaderCell HorizontalAlign="Left">
             <asp:Label  ID="labOutputOptions" runat="server" Text="Output Options" CssClass="ms-sitetitle"></asp:Label>
            </asp:TableHeaderCell> 
        </asp:TableHeaderRow>
        
        <asp:TableRow>
            <asp:TableCell>
                <asp:Table CssClass="ms-toolbar" runat="server" Height="32px">
                    <asp:TableRow>
                    <asp:TableCell Width="100%">
                        <asp:CheckBox ID="cbExludeAdded" runat="server" Text="Exclude added documents" Checked="true" />
                    </asp:TableCell>
                    <asp:TableCell HorizontalAlign="Right"  Width="100%" Wrap=false>                        
                        <asp:Label ID="labView" runat="server" Text="View: "/>
                        <asp:DropDownList ID="ddlViewPicker" runat="server" CssClass="ms-input" AutoPostBack="true"/>
                        <asp:ImageButton ID="ibtnRefresh" runat="server" ToolTip="Refresh the document view list" ImageAlign="Middle" ImageUrl="/_layouts/images/refresh.gif" />     
                    </asp:TableCell>
                    </asp:TableRow>
                </asp:Table>
            </asp:TableCell>
    
            <asp:TableCell></asp:TableCell>
    
            <asp:TableCell Width="100%">
               <asp:Table CssClass="ms-toolbar" runat="server" Width="100%" Height="32px">
                <asp:TableRow Width="100%" HorizontalAlign="Left">
                    <asp:TableCell Width="100px">
                        <asp:ImageButton ID="ibtnMoveUp" runat="server" ImageUrl="/_layouts/images/arrupa.gif" /> 
                        <asp:LinkButton ID="lbtnMoveUp" runat="server" Text="Move Up" Width="30px" Font-Size="XX-Small" ></asp:LinkButton>
                        <asp:ImageButton ID="ibtnMoveDown" ImageAlign="AbsMiddle" runat="server" ImageUrl="/_layouts/images/arrdowna.gif" /> 
                        <asp:LinkButton ID="lbtnMoveDown" runat="server" Text="Move Down" Width="30px" Font-Size="XX-Small"></asp:LinkButton>
                    </asp:TableCell>
                    <asp:TableCell CssClass="ms-separator" HorizontalAlign="Left" Width="2px">|</asp:TableCell>
                    <asp:TableCell HorizontalAlign="Left">
                        <asp:ImageButton ID="ibtnSave" runat="server" ImageUrl="/_layouts/images/SAVE.GIF" />
                        <asp:LinkButton ID="lbtnSave" runat="server" Text="Save Profile" Width="30px" Font-Size="XX-Small" ></asp:LinkButton>                                         
                    </asp:TableCell>
               </asp:TableRow>
              </asp:Table>
    
            </asp:TableCell>
            <asp:TableCell></asp:TableCell>
            <asp:TableCell Width="100%">
                <asp:Table ID="Table1" CssClass="ms-toolbar" runat="server" Width="100%" Height="32px">
                    <asp:TableRow>
                       <asp:TableCell Width="100%" HorizontalAlign="Right">               
                            <span ID="reqdFldTxt" style="white-space: nowrap;padding-right: 3px;" class="ms-descriptiontext">
                                <span class="ms-formvalidation">*</span> indicates a required field
                            </span>
                        </asp:TableCell>
                    </asp:TableRow>
               </asp:Table>
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell VerticalAlign="Top" BorderWidth="1" BorderStyle="Solid">
                <cc1:SPTreeView ID="tvLibraryBrowser" runat="server" Width="380px" NodeStyle-Font-Size="X-Small" NodeStyle-HorizontalPadding="4px" ShowCheckBoxes="Leaf"/>
            </asp:TableCell>
            <asp:TableCell VerticalAlign="Middle">
                <asp:Button ID="btnRight" runat="server" Text=">" Width="25"/>
                <br/>
                <asp:Button ID="btnLeft" runat="server" Text="<" Width="25" />
            </asp:TableCell>
            <asp:TableCell VerticalAlign="Top" BorderWidth="1" BorderStyle="Solid">
                <cc1:SPTreeView ID="tvSelected" runat="server" ShowLines="false" NodeWrap="true" Width="380px" NodeStyle-Font-Size="X-Small" NodeStyle-HorizontalPadding="4px"/>
            </asp:TableCell>
            <asp:TableCell></asp:TableCell>
            
            <asp:TableCell VerticalAlign="Top" BorderWidth="1" BorderStyle="Solid">
                <asp:Table ID="tabOutput" runat="server">
                    <asp:TableRow>
                        <asp:TableCell BorderStyle="Solid" BorderWidth="1">
                            <asp:Panel ID="panOutputSettings" runat="server" Width="250px">
                                <asp:Table ID="tabOutputControls" runat="server">
                                    
                                    <asp:TableRow class="ms-formlabel">
                                        <asp:TableCell Width="70px" Wrap="false">
                                             Metadata
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:DropDownList ID="ddlMetaDataSource" runat="server"  width="176px" CssClass="ms-input">
                                              <asp:ListItem Text="<From Template>" Value="" />
                                            </asp:DropDownList>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    
                                    <asp:TableRow class="ms-formlabel">
                                        <asp:TableCell>
                                            <span ID="Span1" >
                                                Name<span class="ms-formvalidation">*</span> 
                                            </span>
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:TextBox runat="server" ID="tbOutputFile" width="176px" CssClass="ms-input" />                            
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow class="ms-formlabel">
                                        <asp:TableCell>
                                            Format    
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:DropDownList ID="ddlOutputFormat" runat="server" CssClass="ms-input">
                                              <asp:ListItem Text="docx" Value=".docx"/>
                                            </asp:DropDownList>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    
                                    <asp:TableRow class="ms-formlabel">
                                        <asp:TableCell VerticalAlign="Top">
                                            On Build    
                                        </asp:TableCell>
                                        <asp:TableCell BorderStyle="Solid" BorderWidth="1">
                                            <asp:RadioButtonList ID="rblOnBuild" runat="server" CssClass="ms-input">
                                              <asp:ListItem Text="Review Properties" />
                                              <asp:ListItem Text="Open Document" />
                                              <asp:ListItem Text="Go to Library" />
                                              <asp:ListItem Text="Stay Here" />
                                            </asp:RadioButtonList>
                                        </asp:TableCell>
                                    </asp:TableRow>
                            
                            </asp:Table>
                                
                            </asp:Panel>
                        </asp:TableCell>
                    </asp:TableRow>
                    <asp:TableRow>
                        <asp:TableCell BorderStyle="Solid" BorderWidth="1">
                            <asp:Panel ID="panImportSettings" runat="server">
                                <asp:Table ID="Table2" runat="server">
                                    <asp:TableRow  CssClass="ms-formlabel">
                                        <asp:TableCell Width="70px">
                                            Insert as
                                        </asp:TableCell>
                                        <asp:TableCell>
                                            <asp:DropDownList ID="ddlInsertOption" runat="server" width="176px" CssClass="ms-input" AutoPostBack="true">
                                              
                                            </asp:DropDownList>
                                        </asp:TableCell>
                                    </asp:TableRow>
                                    <asp:TableRow CssClass="ms-formlabel">
                                        <asp:TableCell VerticalAlign="Top">
                                            <asp:Label ID="labOptions" runat="server" Text="Options"></asp:Label>
                                        </asp:TableCell>
                                        <asp:TableCell BorderStyle="Solid" BorderWidth="1">
                                            <asp:RadioButtonList ID="rblSlideOptions" runat="server" width="176px" CssClass="ms-input" AutoPostBack="true">
                                              <asp:ListItem Text="All" Value="0" />
                                              <asp:ListItem Text="Selected" Value="1"/>
                                            </asp:RadioButtonList>
                                            
                                            <asp:Panel ID="panLinkOptions" runat="server" >
                                              <asp:RadioButtonList ID="rblLinkOptions" runat="server" CssClass="ms-input" AutoPostBack="true" >
                                                <asp:ListItem Text="Link text as file name" Value="0" Selected="True"></asp:ListItem>
                                                <asp:ListItem Text="Link text as title" Value="1"></asp:ListItem>
                                                <asp:ListItem Text="Link text as full Url" Value="2"></asp:ListItem>
                                                <asp:ListItem Text="Custom link text" Value="3"></asp:ListItem>                                              
                                              </asp:RadioButtonList>&nbsp
                                              <asp:TextBox ID="tbCustomLinkText" runat="server" width="164px" CssClass="ms-input"></asp:TextBox>
                                            </asp:Panel>
                                        </asp:TableCell>
                                    </asp:TableRow>
                            
                            </asp:Table>
                            </asp:Panel>
                        </asp:TableCell>
                    </asp:TableRow>      
                    <asp:TableRow>
                  
                        <asp:TableCell BorderStyle="Solid" BorderWidth="1">
                            <asp:Panel ID="panImagePicker" runat="server"> 
                                  <asp:Table ID="tabSaveSelectionToolbar" CssClass="ms-toolbar" runat="server" Width="100%" Height="32px">
                                        <asp:TableRow>
                                            <asp:TableCell>
                                                <asp:ImageButton ID="ibtnSaveSlideSelection" runat="server" ImageUrl="/_layouts/images/SAVE.GIF" />
                                                <asp:LinkButton ID="lbtnSaveSlideSelection" runat="server" Text="Save Selection" Width="30px" Font-Size="XX-Small" ></asp:LinkButton>
                                            </asp:TableCell>
                                        </asp:TableRow>
                                  </asp:Table>
                                <asp:ImageButton ID="ibtnExpandAll" runat="server" ToolTip="Expand all" ImageUrl="/_layouts/images/PLUS.GIF" />                          
                                <asp:ImageButton ID="ibtnCollapseAll" runat="server" ToolTip="Collapse All" ImageUrl="/_layouts/images/MINUS.GIF" />
                                <asp:CheckBox ID="cbSelectAll"  runat="server" Text="Select/Deselect All" CssClass="ms-input" AutoPostBack="true" />
                                <cc1:SPTreeView ID="tvImagePicker" runat="server" Width="250px" NodeStyle-Font-Size="X-Small" NodeStyle-HorizontalPadding="4px" ExpandDepth="0" />
                            </asp:Panel>
                        </asp:TableCell>
                    
                    </asp:TableRow>     
                </asp:Table>
                
            </asp:TableCell>
        
        </asp:TableRow>
       
        <asp:TableRow>
           <asp:TableCell HorizontalAlign="Right" ColumnSpan="5" >
              <asp:Button ID="btnBuildBottom" runat="server" Text="Build" Width="80px" />&nbsp
              <asp:Button ID="btnCancelBottom" runat="server" Text="Cancel" Width="80px" />
            </asp:TableCell>
        </asp:TableRow>
    
    </asp:Table>    
    
</asp:Content>

<asp:Content ID="NavBarLeft" ContentPlaceHolderID="PlaceHolderLeftNavBarTop" runat="server">
    <asp:Label ID="labNavLeftHeader" runat="server" Text="Document Profile<br>" Font-Bold="true" Font-Size="X-Small" ToolTip="Click on component document to see it's profile"></asp:Label>
</asp:Content>



<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderLeftNavBar" runat="server">
    
    <div id="divPreviewPopup" style="visibility:hidden; position:absolute; top:0; left:0; 
         border-width:medium; border-color:Black; ">
    <asp:Image ID="imgPopupPreview" runat="server" BackColor="WhiteSmoke"/>
    </div>
   
    <script type="text/javascript">
        function ShowPopup() {          
            hDivPreviewPopup = document.getElementById("divPreviewPopup");
            hDivPreviewPopup.style.top = 10;
            hDivPreviewPopup.style.left = 100;            
            hDivPreviewPopup.style.visibility = "Visible";
        }

        function HidePopup() {
            hDivPreviewPopup = document.getElementById("divPreviewPopup");
            hDivPreviewPopup.style.visibility = "Hidden";
        }
        
    </script>
     <asp:HyperLink ID="lnkDocThumbnail" runat="server" Target="_blank"
             ImageUrl="/_layouts/images/blank.gif" 
             onMouseOver="ShowPopup();"
             onMouseOut="HidePopup();" 
          />   
   
          
    <asp:Label ID="labDocInfo" runat="server" Text="" >
    </asp:Label>
    
</asp:Content>



